/* Custom CSS with cool color palette */
:root {
  --primary-color: #4a6fa5;
  --secondary-color: #166088;
  --accent-color: #4e8098;
  --light-color: #e9eff6;
  --dark-color: #2c3e50;
  --text-color: #333b4f;
  --card-bg: #f7f9fc;
  --hover-color: #5b88c7;
  --border-color: #d1dce7;
  
  /* Note colors */
  --note-yellow: #fff8dc;
  --note-blue: #e6f2ff;
  --note-green: #e8f5e9;
  --note-pink: #fce4ec;
  --note-purple: #f3e5f5;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f4f8;
  color: var(--text-color);
  line-height: 1.6;
}

/* Navbar styling */
.navbar {
  background-color: var(--dark-color) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 600;
  color: var(--light-color) !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff !important;
}

/* Card styling */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: var(--card-bg);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: var(--primary-color);
  color: white;
  border-bottom: none;
  padding: 15px 20px;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0;
}

.card-body {
  padding: 20px;
}

.card-footer {
  background-color: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--border-color);
  padding: 12px 20px;
}

/* Note card styling */
.note-card {
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.note-card:nth-child(5n+1) {
  border-left-color: var(--primary-color);
}

.note-card:nth-child(5n+2) {
  border-left-color: #28a745;
}

.note-card:nth-child(5n+3) {
  border-left-color: #fd7e14;
}

.note-card:nth-child(5n+4) {
  border-left-color: #6f42c1;
}

.note-card:nth-child(5n+5) {
  border-left-color: #e83e8c;
}

.note-card:nth-child(5n+1) .card-header {
  background-color: var(--primary-color);
}

.note-card:nth-child(5n+2) .card-header {
  background-color: #28a745;
}

.note-card:nth-child(5n+3) .card-header {
  background-color: #fd7e14;
}

.note-card:nth-child(5n+4) .card-header {
  background-color: #6f42c1;
}

.note-card:nth-child(5n+5) .card-header {
  background-color: #e83e8c;
}

/* Button styling */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--hover-color);
  border-color: var(--hover-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-outline-secondary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-danger {
  color: #d9534f;
  border-color: #d9534f;
}

.btn-outline-danger:hover {
  background-color: #d9534f;
  color: white;
}

/* Form styling */
.form-control {
  border-radius: 6px;
  border: 1px solid var(--border-color);
  padding: 10px 15px;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(74, 111, 165, 0.25);
}

/* Login and Register pages */
.login-form, .register-form {
  max-width: 400px;
  margin: 80px auto;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.login-title, .register-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-weight: 600;
}

/* Alert styling */
.alert {
  border-radius: 8px;
  padding: 15px 20px;
}

/* Container spacing */
.container.mt-4 {
  margin-top: 2rem !important;
  padding-bottom: 3rem;
}

/* Memo content */
.memo-content {
  white-space: pre-line;
  line-height: 1.8;
}

/* Memo view page */
.memo-view-card {
  margin-bottom: 30px;
}

.memo-metadata {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .login-form, .register-form {
    margin: 40px auto;
    padding: 20px;
  }
  
  .navbar .form-control {
    width: 120px;
  }
} 